<!DOCTYPE html>
<html>

<body ng-app='myapp' >
<div class="modal-header">
    <h3 class="modal-title" id="modal-title">GWT</h3>
</div>
<div class="modal-body" id="modal-body">
    <h1>选择位置</h1>
    <!--{{model}}a-->
    <div id="map">
        <div class="row" ng-repeat="index in [14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]">
            <div class="col-xs-{{space.size}} col-md-{{space.size}}  col-md-offset-{{space.offset}}" ng-repeat="space in gameProperties.listSpace|filter: { row: index }:true | orderBy:'column' ">
                <div class="panel panel-default" style="">
                    <div class="panel-body" style="border:{{space.bordersize}}px solid {{space.bordercolor}};text-align:center">
                        <div class="row">
                            {{space.row}} - {{space.column}}
                            <span class="badge" style="background-color: {{player.color}}" ng-repeat="player in space.listPlayer">&nbsp</span>

                            <!--<div class="circle"></div>-->
                        </div>
                        <!--建筑板块-->
                        <div ng-show="space.gwtSpaceTile">
                            {{space.gwtSpaceTile.info}}
                            <!--行动-->
                            <div  ng-if="space.gwtSpaceTile.listDoAction!=null">
                                <ul class="list-group">
                                    <li class="list-group-item" ng-if="space.gwtSpaceTile.listChooseAction!=null && space.gwtSpaceTile.listChooseAction.length>0">
                                        | <span ng-repeat="action in space.gwtSpaceTile.listChooseAction"  ng-click="openClickWindow(action,space.listPlayer)">{{action.pattern}} | </span>
                                    </li>
                                    <li class="list-group-item" ng-repeat="action in space.gwtSpaceTile.listDoAction">
                                        <span ng-click="openClickWindow(action,space.listPlayer)">{{action.pattern}}</span>
                                    </li>
                                </ul>
                            </div>

                            <div  ng-if="space.gwtSpaceTile.gwtPlayer==null">
                            </div>
                            <div  ng-if="space.gwtSpaceTile.gwtPlayer!=null" style="background-color: {{space.gwtSpaceTile.gwtPlayer.color}}">
                                {{space.gwtSpaceTile.gwtPlayer.userName}}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button>
</div>


</body>
</html>

